import { Text, View } from "@tarojs/components";

import "./styles.scss";

export default function InfiniteLoadingFoot(props) {
  return (
    <View className="infinite-loading-foot">
      {props?.state === 0 && (
        <Text className="infinite-loading-foot__tips-label">加载更多</Text>
      )}
      {props?.state === 1 && (
        <Text className="infinite-loading-foot__tips-label">加载中...</Text>
      )}
      {props?.state === 2 && (
        <Text className="infinite-loading-foot__tips-label">已无更多~</Text>
      )}
    </View>
  );
}
